﻿using UnityEngine;
using System.Collections;

public class EnemyDestroyer : MonoBehaviour {

	void OnTriggerEnter(Collider other)
	{
		Debug.Log ("HITOU " + other.gameObject.tag);
		
		if (other.gameObject.tag == "banana") 
		{
			Destroy(other.gameObject);
		}

		if (other.gameObject.tag == "enemy") 
		{
			Application.LoadLevel("Menu");
		}
		
	}
}
